<?php
require_once('class.PHPJasperReport.php');
$report = new PHPJasperReport("PDF","br");
$report->setDataBaseConfig(array(
    'sgbd' =>'mysql',
    'host' => 'localhost',
    'dbname' => '',
    'user' => 'root',
    'password' => ''
));
$report->setXMLFile("");
$report->genarate(); 
?>